import React from "react";
import {observer} from "mobx-react";
import {Button, InputItem, List, Modal, Tools} from "weaver-mobile";

const getLabel = Tools.getLabel;

@observer
export default class Main extends React.Component {
    constructor(props) {
        super(props);
    }

    saveAuthCode(val) {
        const {secondAuthStore} = this.props;
        secondAuthStore.saveAuthCode(val);
    }

    render() {
        return (
            <List>
                <InputItem
                    className="ca-auth-inputitem"
                    type="password"
                    onChange={this.saveAuthCode.bind(this)}
                    placeholder={getLabel(501201, "请输入二次验证密码")}/>
            </List>
        );
    }
}